package top.itlir.edc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import top.itlir.edc.dao.SubareaRepository;
import top.itlir.edc.domain.SubArea;
import top.itlir.edc.service.SubareaService;

@Service
@Transactional
public class SubareaServiceImpl implements SubareaService {
	@Autowired
	private SubareaRepository subareaRepository;
	
	@Override
	public void save(SubArea model) {
		subareaRepository.save(model);
	}

	@Override
	public Page<SubArea> findAll(Pageable pageable) {
		return subareaRepository.findAll(pageable);
	}

	@Override
	public List<SubArea> findAll() {
		return subareaRepository.findAll();
	}

	@Override
	public List<Object> showChart() {
		return subareaRepository.showChart();
	}


}
